package com.ews.onlineexchange.model;

import javax.persistence.Entity;
import javax.persistence.ManyToOne;
import javax.validation.constraints.NotNull;

@Entity
public class ProfessionUser extends User {

	/**
	 * 
	 */
	private static final long serialVersionUID = 1L;
	
	private ServiceDepartment serviceDepartment;

	@ManyToOne
	@NotNull
	public ServiceDepartment getServiceDepartment() {
		return serviceDepartment;
	}

	public void setServiceDepartment(ServiceDepartment serviceDepartment) {
		this.serviceDepartment = serviceDepartment;
	}

}
